<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<h:form>
<center><table border=1>
<tr>
<td>
<h:outputLabel>User Name:</h:outputLabel>
</td>
<td>
<h:inputText id="name" value="#{userBean.user.name }"/>
</td>
</tr>
<tr>
<td>
<h:outputLabel>Password:</h:outputLabel>
</td>
<td>
<h:inputText id ="pass" value="#{userBean.user.password }"></h:inputText>
</td>
</tr>
<tr>
<td> <h:commandButton value="Login" action="#{userBean.login}"/> </td>
<td>
<h:commandButton value="Cancel"/>
</td>
</tr>
</table></center>
</h:form>
</body>
</html>
</f:view>